package testtiles.state;

import testtiles.object.Unit;


public class UnitHoldState extends AbstractState<Unit> {

	private static final UnitHoldState instance = new UnitHoldState();

	public static UnitHoldState getInstance() {
		return instance;
	}

	@Override
	public void enter(Unit owner) {
		owner.setSpeed(0);
		owner.getAnimations().getStay().play();
	}

	@Override
	public void execute(Unit owner) {
	}

	@Override
	public void leave(Unit owner) {
	}

}
